
interface i_list{
    id:number, 
    content:string,
}


function predata(target:any,name:string){
    console.log(target);
    
}


class Person{
    @predata
    getdata(list:i_list[]){
    // console.log(list);
    
    }
}

let p=new Person();

let arr:i_list[]=[{
    id:0,
    content:"string",
}]

p.getdata(arr)

export {}